package com.ky.home.mapper;

import com.ky.home.entity.VO.WrongQuestionsVO;
import com.ky.home.entity.WrongQuestions;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import com.ky.home.entity.WrongQuestions;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pl
 * @since 2024-06-22
 */
public interface WrongQuestionsMapper extends BaseMapper<WrongQuestions> {

    @Select("SELECT w.*, e.* FROM wrong_questions w LEFT JOIN exam e ON w.question_id = e.id WHERE w.type = 2")
    List<WrongQuestionsVO> selectListByExam(Integer questionsVOQueryWrapper);

}
